import request from './index.js'

export const regAPI = (data) => {
  return request.post('/api/reg', data)
}
export const loginAPI = (data) => {
  return request.post('/api/login', data)
}

export const userinfoAPI = () => {
  return request.get('/my/userinfo')
}
export const updataUserInfoAPI = (data) => {
  return request.put('/my/userinfo', data)
}
